-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for https://github.com/wso2/streaming-integrator/issues/165 #118
Conversation
this.scheduledFuture = siddhiAppContext.getScheduledExecutorService(). | ||
scheduleAtFixedRate(fileSourcePoller, 0, 1, TimeUnit.SECONDS); | ||
} | ||
if (isTailingEnabled && fileSourceConfiguration.getFileServerConnector() != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If tailing disabled, and if its a large file which will take time more than the persisting interval, the file processing may stop. Isnt it?
Shall we use filePointer and resolve that issue?
This may affect for the files that will be processing in a given dir.uri as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Ramindu,
In the existing pause() method, the file processing thread is not stopped which is the reason why I thought that there is nothing to resume in the resume() method, assuming that the file will be processed anyway. But let's check this further, to make sure that happens. I have created a separate issue to track this particular issue: #120.
Thanks
Resolves following issues in file:move(): 'include.by.regexp' and 'exclude.root.dir' parameters in file:move() are not dynamic When 'exclude.root.dir' parameter is set to true, the destination path does not get created correctly When four parameters are given, the regex is always set to ''
Purpose
Improves the fix done for wso2/streaming-integrator#165 by returning false when FileSystemException occurs.
Also